import { Excel } from '@ttou/midway-excel'
import { Exclude } from 'class-transformer'

/**
 * 配置导出序列化
 */
export class ConfigExportSerialize implements ISysConfigEntity {
  @Excel({ header: '参数主键' })
  configId: number

  @Excel({ header: '参数名臣' })
  configName: string

  @Excel({ header: '参数键名' })
  configKey: string

  @Excel({ header: '参数键值' })
  configValue: string

  @Excel({ header: '系统内置' })
  configType: string

  @Exclude()
  createBy: string

  @Excel({ header: '创建时间' })
  createTime: Date

  @Exclude()
  updateBy: string

  @Exclude()
  updateTime: Date

  @Excel({ header: '备注' })
  remark: string

  constructor(partial: any) {
    Object.assign(this, partial)
  }
}
